package com.zf.yichat.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

@Table(name = "packet_video")
public class PacketVideo implements Serializable {
    @Id
    private Long id;

    /**
     * 红包金额
     */
    private BigDecimal money;

    /**
     * 创建人
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * 领取限制时间（单位秒）
     */
    @Column(name = "limit_time")
    private Integer limitTime;

    private Date ctime;

    @Column(name = "receive_time")
    private Date receiveTime;

    /**
     * 0 未领取 1已领取
     */
    private Integer status;

    private static final long serialVersionUID = 1L;

    public PacketVideo(Long id, BigDecimal money, Long userId, Integer limitTime, Date ctime, Date receiveTime, Integer status) {
        this.id = id;
        this.money = money;
        this.userId = userId;
        this.limitTime = limitTime;
        this.ctime = ctime;
        this.receiveTime = receiveTime;
        this.status = status;
    }

    public PacketVideo() {
        super();
    }

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取红包金额
     *
     * @return money - 红包金额
     */
    public BigDecimal getMoney() {
        return money;
    }

    /**
     * 设置红包金额
     *
     * @param money 红包金额
     */
    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    /**
     * 获取创建人
     *
     * @return user_id - 创建人
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 设置创建人
     *
     * @param userId 创建人
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取领取限制时间（单位秒）
     *
     * @return limit_time - 领取限制时间（单位秒）
     */
    public Integer getLimitTime() {
        return limitTime;
    }

    /**
     * 设置领取限制时间（单位秒）
     *
     * @param limitTime 领取限制时间（单位秒）
     */
    public void setLimitTime(Integer limitTime) {
        this.limitTime = limitTime;
    }

    /**
     * @return ctime
     */
    public Date getCtime() {
        return ctime;
    }

    /**
     * @param ctime
     */
    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    /**
     * @return receive_time
     */
    public Date getReceiveTime() {
        return receiveTime;
    }

    /**
     * @param receiveTime
     */
    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }

    /**
     * 获取0 未领取 1已领取
     *
     * @return status - 0 未领取 1已领取
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置0 未领取 1已领取
     *
     * @param status 0 未领取 1已领取
     */
    public void setStatus(Integer status) {
        this.status = status;
    }
}